<template>
  <nm-form-dialog ref="form" v-bind="form" v-on="on" :visible.sync="visible_">
    <el-row>
      <el-col :span="20" :offset="1">
        <el-form-item label="线路编号：" prop="route_id">
          <el-input v-model="form.model.route_id" clearable />
        </el-form-item>
        <el-form-item label="序号：" prop="section_serial">
          <el-input v-model="form.model.section_serial" clearable />
        </el-form-item>
        <el-form-item label="站点：" prop="station_id">
          <el-input v-model="form.model.station_id" clearable />
        </el-form-item>
        <el-form-item label="公里：" prop="mileage">
          <el-input v-model="form.model.mileage" clearable />
        </el-form-item>
        <el-form-item label="站点类型：" prop="station_type">
          <el-input v-model="form.model.station_type" clearable />
        </el-form-item>
      </el-col>
    </el-row>
  </nm-form-dialog>
</template>
<script>
import { mixins } from 'netmodular-ui'

const { add, edit, update } = $api.dispatch.route_section

export default {
  mixins: [mixins.formSave],
  data() {
    return {
      title: '线路明细',
      actions: { add, edit, update },
      form: {
        model: {
          /** 线路编号 */
          route_id: '',
          /** 序号 */
          section_serial: '',
          /** 站点 */
          station_id: '',
          /** 公里 */
          mileage: '',
          /** 站点类型 */
          station_type: ''
        },
        rules: {}
      }
    }
  }
}
</script>
